package sjms.create.builder;

/**
 * @ClassName:
 * @Description:
 * @Author fcb
 * @Date 2020/5/25 15:58
 */
public class BaoMaBuilder implements CarBuilder {

    private Car car;

    public BaoMaBuilder(){
        this.car = new Car();
    }

    @Override
    public void setBrand(String brand) {
        car.setBrand(brand);
    }

    @Override
    public void setName(String name) {
        car.setName(name);
    }

    @Override
    public Car getCar(){
        return this.car;
    }
}
